<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        div {
            color: red;
        }

        p {
            color: green;
        }
        /* 继承 权重是0 所以颜色不会变 */
        .demo {
            color: blue;
        }

        /* .demo p{
            color: blue;
        } */
        #weight{
            color: blue;
        }
    </style>
</head>

<body>
    <div class="demo" id="weight">
        <p>继承的权重为 0</p>
    </div>
</body>

</html>